<?php
/**
 * [PHPFOX_HEADER]
 */

defined('PHPFOX') or exit('NO DICE!');

/**
 * 
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package  		Module_Friend
 * @version 		$Id: small.class.php 2760 2011-07-27 13:39:18Z Raymond_Benc $
 */
class Pages_Component_Block_Menu_Link extends Phpfox_Component
{
	/**
	 * Class process method wnich is used to execute this component.
	 */
	public function process()
	{				
                $aPage = $this->getParam("aPage",null);
                if($aPage === null){
                    return false;
                }
                $this->template()->assign(array(
                    "aPage" => $aPage,
                    'aPageLinks' => Phpfox::getService('pages')->getMenu($aPage)
                ));
	}
	
	/**
	 * Garbage collector. Is executed after this class has completed
	 * its job and the template has also been displayed.
	 */
	public function clean()
	{
		(($sPlugin = Phpfox_Plugin::get('friend.component_block_profile_small_clean')) ? eval($sPlugin) : false);
	}
	
	public function widget()
	{
		return true;
	}
}

?>